package com.sheepone.util.beanconvert.filter;


import com.sheepone.util.regex.NumberRegexUtil;
import com.sheepone.util.regex.RegexUtil;

import java.lang.reflect.Field;
import java.util.List;

/**
 * @author Miss.杨
 * @description
 * @since 2024/3/2 - 21:45
 */
public class ExcludeZeroValueFilter implements ValueFilter {
    @Override
    public List<String> handleValues(Field field, List<String> valueStrs) {
        valueStrs.removeIf(value -> value.matches(NumberRegexUtil.IS_ZERO));
        return valueStrs;
    }
}
